package com.fansl.allround.oss.api.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @author fansl
 * @Description: TODO
 * @date 2019/9/2 19:10
 */
@Data
@Configuration
@RefreshScope
@ConditionalOnExpression("!'${oss.qiniu}'.isEmpty()")
@ConfigurationProperties(prefix = "oss.qiniu")
public class QiniuOssPropertiesConfig {
    private String region;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
    private String bucketNamePub;
    private String callbackUrl;
    private long expireInSeconds = 3600;
    private String domainOfBucket;
    private String domainOfBucketPub;
}
